﻿$(function () {
    loadTables();
});

function loadTables() {
    $("#tableBody").html("");
    $.ajax({
        type: "GET",
        url: "/Party/GetAllParty?_t=" + new Date().getTime(),
        success: function (data) {
            $.each(data, function (i, item) {
                var tr = "<a class='weui-cell' href='/Party/PartyMember?partyId=" + item.id + "'>" +
                        "<div style='position: relative;margin-right: 10px;' class='weui-cell__hd'>" +
                    "<img src='/images/dq.jpg' style='width: 50px;display: block'>" +
                        // "<span class='weui-badge' style='position: absolute;top: -.4em;right: -.4em;'>8</span>" +
                        "</div>" +
                        "<div class='weui-cell__bd'>" +
                        "<p style='color: #000;'>" + item.name +"</p>" +
                        "<p style='font-size: 13px;color: #888888;'>地点：" + item.address + "</p>" +
                        "</div>" +
                        "</a>";

                $("#tableBody").append(tr);
            })
        }
    })
};